Function.RegisterNamespace("System.Web.StorageStrategy");

System.Web.StorageStrategy.Standard=function(){    
    // IStorageStrategy Methods
    this.Clear=function(name){
        localStorage.removeItem(name);
    };

    this.Get=function(name){
        return localStorage.getItem(name);    
    };

    this.Set=function(name,value){
        localStorage.setItem(name,value);
    };

    // IStrategySpecification Members
    this.IsSatisfiedBy=function(candidate){
        return !!candidate.localStorage;
    };

};

System.Web.StorageStrategy.Standard.Implement(System.Web.Storage.IStorageStrategy,"System.Web.StorageStrategy.Standard");
System.Web.StorageStrategy.Standard.Implement(System.Script.Strategy.IStrategySpecification,'System.Web.StorageStrategy.Standard');